﻿@using Microsoft.ProjectServer.Client;
@model PublishedTaskCollection

<div class="panel panel-default">
    <div class="panel-heading">
        @using (Ajax.BeginForm("AddTaskPartial", "Projects", new AjaxOptions { HttpMethod = "Get" }))
        {
            <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-plus-sign"> Add Task</span></button>
        }
    </div>
    <div class="panel-body">
        <table>
            <thead>
                <tr>
                    <th>
                        Task Id
                    </th>
                    <th>
                        Task Name
                    </th>
                    <th>
                        Task Percent Complete
                    </th>
                    <th>
                        Task Outline Level
                    </th>
                </tr>
            </thead>
            @foreach (PublishedTask task in Model)
{
    <tr>
        <td>
            @task.Id
        </td>
        <td>
            @task.Name
        </td>
        <td>
            @task.PercentComplete
        </td>
        <td>
            @task.OutlineLevel
        </td>
    </tr>
}
        </table>
    </div>
</div>
